﻿using MVVMPerson.view;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MVVMPerson
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public Person person1, person2;
        public MainWindow()
        {
            InitializeComponent();
            person1 = new() { Name = "tom", Age = 22 };
            person2 = new() { Name = "alice", Age = 16 };
            uiPV1.uiPerson.DataContext = person1;
            uiPV2.uiPerson.DataContext = person2;
        }
    }
}